import request from '@/utils/request'

// 查询建议列表
export function listAdvise(query) {
  return request({
    url: '/ted/advise/list',
    method: 'get',
    params: query
  })
}

// 查询建议详细
export function getAdvise(ID) {
  return request({
    url: '/ted/advise/' + ID,
    method: 'get'
  })
}

// 新增建议
export function addAdvise(data) {
  return request({
    url: '/ted/advise',
    method: 'post',
    data: data
  })
}

// 修改建议
export function updateAdvise(data) {
  return request({
    url: '/ted/advise',
    method: 'put',
    data: data
  })
}

// 删除建议
export function delAdvise(ID) {
  return request({
    url: '/ted/advise/' + ID,
    method: 'delete'
  })
}
